package com.djinfo.work.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * 2.5.1.1 角色用户信息主表
 * 
 * @author ming
 *
 */
@Entity
@Table(name = "tb_sys_role_user")
public class TbSysRoleUser implements java.io.Serializable {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;
	private String pkRoleUserId;// ID
	private String roleId; // 角色id
	private String userId; // 用户id
	private String createTime;//创建时间
	private String updateTime;//修改时间
	private String createUser;
	private String updateUser;
	@Column(name = "create_user")
	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	@Column(name = "update_user")
	public String getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}
	@Column(name = "create_time")
	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}
	@Column(name = "update_time")
	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}
	@Id
	@Basic(optional = false)
	@GeneratedValue(generator = "id")
	@GenericGenerator(name = "id", strategy = "uuid")
	@Column(name = "pk_role_user_id", unique = true, nullable = false)
	public String getPkRoleUserId() {
		return this.pkRoleUserId;
	}

	public void setPkRoleUserId(String pkRoleUserId) {
		this.pkRoleUserId = pkRoleUserId;
	}
	@Column(name = "role_id", nullable = false, length = 20)
	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}
	@Column(name = "user_id", nullable = false, length = 20)
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
}
